Cisco Catalyst 4948E Ethernet Switch(NetFlow Lite) Configuration

    You can perform Cisco Catalyst 4948E Ethernet Switch(NetFlow Lite) configuration using the following steps:

    config t
    flow record NfliteRecord
    collect counter bytes long
    collect counter packets long collect flow sampler
    collect interface input
    collect timestamp sys-uptime first
    collect timestamp sys-uptime last
    collect transport tcp flags ack
    collect transport tcp flags fin
    collect transport tcp flags rst
    match ipv4 protocol
    match ipv4 destination address
    match ipv4 source address
    match ipv4 tos
    match transport destination-port
    match transport source-port

    flow exporter NfliteExporter
    destination {NETFLOW_SERVER_IP}
    export-protocol netflow-v9
    option interface-table
    option exporter-stats
    option sampler-table
    source loopback {LOOPBACK_INTERFACE_NAME}
    template data timeout 60
    transport udp {NETFLOW_SERVER_LISTENER_PORT}

    flow monitor NfliteMonitor
    record NfliteRecord
    exporter NfliteExporter
    cache timeout active 60
    cache timeout inactive 15
    cache type normal
    statistics packet protocol

    sampler NfliteSampler
    mode random 1 out-of 32

    Enter global configuration mode on the router or MSFC, and issue the following commands for each interface on which you want to enable flow:

    interface {INTERFACE_NAME}
    ip flow monitor NfliteMonitor sampler NfliteSampler input
    exit